home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Fun House 1
/
CD Fun House (Wayzata Technology).iso
/
•The Arcade•
/
RoboWar ••••
/
Robots Folder
/
Freud
/
Freud
next >
Wrap
Text File
|
1990-04-27
|
1KB
|
74 lines
# Freud
# Created 3/12/90 by David Harris
#
# Has no relation whatsoever to any bears.
Init:
3 speedx' store
3 speedy' store
Main:
collision handleCollision if
range shootSub if
x 30 < leftEdge if
x 270 > rightEdge if
collision handleCollision if
y 60 < topEdge if
y 270 > bottomEdge if
aim 17 + aim' store
energy 90 > letOffSteam if
Main jump
leftEdge:
2 random 120 / + speedx' store
return
rightEdge:
-2 random 120 / - speedx' store
return
topEdge:
2 random 120 / + speedy' store
return
bottomEdge:
-2 random 120 / - speedy' store
return
shootSub:
energy missile' store
aim 30 - aim' store
return
letOffSteam:
40 missile' store
return
handleCollision:
range checkTarget if
aim 70 + aim' store
collision repeatSearch endSearch ife
checkTarget:
range 35 < foundTarget if
return
foundTarget:
50 missile' store
range targetPresent targetDead ife
targetPresent:
drop
foundTarget jump
targetDead:
drop
return # to checkTarget
repeatSearch:
drop
handleCollision jump
endSearch:
drop
return